package com.itheima.order.clients;

import com.itheima.order.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("sc-order1") //开启feign,并声明服务名称
public interface Orderclient {

    @GetMapping("/order/query")
    List<Order> findOrderByUsername(@RequestParam("username") String username);
}
